Skip to content

fix(api): send response stream flag as query parameter#661

Open
soslanco wants to merge 1 commit into
openai:mainfrom
soslanco:fix/660-responses-get-streaming-query
Open

fix(api): send response stream flag as query parameter#661
soslanco wants to merge 1 commit into
openai:mainfrom
soslanco:fix/660-responses-get-streaming-query

Conversation

@soslanco

@soslanco soslanco commented May 8, 2026

Copy link
Copy Markdown

Summary

Fixes Responses.GetStreaming so that the stream=true flag is sent as a query parameter for GET /responses/{response_id}.

The retrieve response endpoint defines stream as a query parameter. Previously, GetStreaming set it in the JSON body via option.WithJSONSet, which is not appropriate for this GET endpoint.

This leaves Responses.NewStreaming unchanged, since POST /responses should continue to set stream in the request body.

Closes #660

Test plan

  • Ran ./scripts/format
  • Ran ./scripts/lint
  • Ran ./scripts/mock and ./scripts/test

@soslanco soslanco requested a review from a team as a code owner May 8, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(api) Responses API GetStreaming method

1 participant